import { defineConfig } from 'umi';
import routers from './routers';
import proxy from './proxy';

export default defineConfig({
  nodeModulesTransform: {
    type: 'none',
  },
  routes: routers,
  fastRefresh: {},
  mfsu: {
    development: {
      output: './.mfsu-dev',
    },
    production: {
      output: './.mfsu-prod',
    },
  },
  dva: {
    immer: true,
    hmr: true,
  },
  dynamicImport: {
    loading: '@/components/Loading',
  },
  proxy,
  // 开启layout
  layout: {
    name: '用户管理',
    locale: true,
    layout: 'side',
  },
});
